f = open("zm6_6.txt")
w = open("6_6zm.txt", "w", encoding="UTF-8")
for line in f:
    c, m = line.split()
    print(c, m)
    s = "{}\t{}\n".format(m, c)
    w.write(s)
w.close()
f.close()
